package wiki.hitime.demo.test.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;
import wiki.hitime.demo.test.bean.db.Order;

/**
 * @author zhangdaoping
 * @create 2019-10-30 17:05
 */
@Repository
public interface OrderMapper extends Mapper<Order>, MySqlMapper<Order> {

    @Select("SELECT order_id AS orderId,name AS name,order_type AS orderType FROM order WHERE order_id=#{orderId}")
    Order selectByOrderId(@Param("orderId") String orderId);
}
